package com.hp.service;

import com.hp.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    User login(User user);

    List<Permissions> getPermissions(Integer id);

    void saveLog(LoginInfor log);

      List<Role> getAllRole();

    List<User> findAll(User user, Integer page, Integer limit);

    User findById(User user);

    int add(Patient patient);

    int delete(User user);
    List<User> selectAll(String email,@Param("limit") Integer limit, @Param("page") Integer page);
    List<User> findAlle(String email);
    int update(User user);

    User findAlltow(String email);
    int updatetow(User user);

    List<User> addfind(String email);


    List<Role> selectrole();

    int add1(UserRole userRole);
}
